package marmalius;
public class FirstNpcClick {

	public void FishLobster(int NpcID, int playerID) {
		client c = (client) PlayerHandler.getInstance().getPlayer(playerID);
		//boolean PutNPCCoords = false;
		int NPCSlot = (misc.HexToInt(c.inStream.buffer, 0, c.packetSize) / 1000);

		switch (NpcID) {

		case 234:
			//Fishing t = 
			new Fishing(c.playerId, "lobster", 377, 40, 619, 301, 250);
			
			c.skillX = NPCHandler.getInstance().getNPC(NPCSlot).absX;
			c.skillY = NPCHandler.getInstance().getNPC(NPCSlot).absY;
			break;
		}
	}

	public void FishShark(int NpcID, int playerID) {
		client c = (client) PlayerHandler.getInstance().getPlayer(playerID);
		//boolean PutNPCCoords = false;
		int NPCSlot = (misc.HexToInt(c.inStream.buffer, 0, c.packetSize) / 1000);

		switch (NpcID) {

		case 233:
			//Fishing t = 
			new Fishing(c.playerId, "shark", 383, 75, 618, 311, 400);

			c.skillX = NPCHandler.getInstance().getNPC(NPCSlot).absX;
			c.skillY = NPCHandler.getInstance().getNPC(NPCSlot).absY;
			break;
		}
	}

	public void FishShrimp(int NpcID, int playerID) {
		client c = (client) PlayerHandler.getInstance().getPlayer(playerID);
		//boolean PutNPCCoords = false;
		int NPCSlot = (misc.HexToInt(c.inStream.buffer, 0, c.packetSize) / 1000);

		switch (NpcID) {

		case 235:
		case 236:
			//Fishing t = 
			new Fishing(c.playerId, "shrimp", 317, 0, 621, 303, 100);

			c.skillX = NPCHandler.getInstance().getNPC(NPCSlot).absX;
			c.skillY = NPCHandler.getInstance().getNPC(NPCSlot).absY;
			break;
		}
	}

	public void FishManta(int NpcID, int playerID) {
		client c = (client) PlayerHandler.getInstance().getPlayer(playerID);
		//boolean PutNPCCoords = false;
		int NPCSlot = (misc.HexToInt(c.inStream.buffer, 0, c.packetSize) / 1000);

		switch (NpcID) {

		case 316:
			//Fishing t = 
			new Fishing(c.playerId, "manta", 389, 89, 618, 311, 1000);

			c.skillX = NPCHandler.getInstance().getNPC(NPCSlot).absX;
			c.skillY = NPCHandler.getInstance().getNPC(NPCSlot).absY;
			break;
		}
	}

	public void NpcClick(int NpcID, int playerID) {
		client c = (client) PlayerHandler.getInstance().getPlayer(playerID);
		boolean PutNPCCoords = false;
		int NPCSlot = (misc.HexToInt(c.inStream.buffer, 0, c.packetSize) / 1000);
		
		switch (NpcID) {
			case 364:
				c.getTask(c.playerId);			   
				PutNPCCoords = true; 
				break;
			case 1305: // Agnar Food Shop
				PutNPCCoords = true;
				c.WanneShop = 30; // Aubury Magic Shop
				break;
			case 36: // Agnar Food Shop
				PutNPCCoords = true;
				c.WanneTele = 30; // Aubury Magic Shop
				break;
			case 945: // Agnar Food Shop
				PutNPCCoords = true;
				if (c.starter == 0) {
					c.addItem(1275, 1);
					c.sendMessage("Now go mine essence and runecraft!");
					c.starter = 1;
				}
				if (c.starter == 1)
					c.sendMessage("You have already got your starter!");
				break;
			case 942: // Agnar Food Shop
				PutNPCCoords = true;
				c.WanneShop = 55; // Aubury Magic Shop
				break;
			case 797: // warrior guild shop
				PutNPCCoords = true;
				c.WanneShop = 56; // warrior guild shop
				break;
			case 2253: // pureshop
				PutNPCCoords = true;
				c.WanneShop = 50; // pureshop
				break;
			case 1552: // lal santas holiday stuff
				PutNPCCoords = true;
				c.WanneShop = 31;
				break;
			case 2262: // dark mage rbe shp
				PutNPCCoords = true;
				c.WanneShop = 32;
				break;
			case 549: // HORVIK
				PutNPCCoords = true;
				c.WanneShop = 38;
				break;
			/*
			case 166: // gnome banker
				PutNPCCoords = true;
				c.openUpBank();
				break;
			*/
			case 2167: // team capes 1
				PutNPCCoords = true;
				c.WanneShop = 33;
				break;
			case 2621: // the obby caves guy
				c.WanneShop = 41; // obby shop
				break;
			case 2917: // the obby caves guy
				c.WanneShop = 60; // obby shop
				break;
			case 954: // the obby caves guy
				c.WanneShop = 24; // obby shop
				break;
			case 558: // Nulodian
				PutNPCCoords = true;
				c.WanneShop = 18; // Black Armour Shop
				break;
			case 2168: // team capes 2
				PutNPCCoords = true;
				c.WanneShop = 34;
				break;
			case 2538: // Shop Keeper
				PutNPCCoords = true;
				c.WanneShop = 3;
				break;
			case 2540: // Shop Keeper
				PutNPCCoords = true;
				c.WanneShop = 1; 
				break;
			case 2539: // Bandit
				PutNPCCoords = true;
				c.WanneShop = 5; 
				break;
			case 2547: // Aubury rune shop
				PutNPCCoords = true;
				c.WanneShop = 2; 
				break;
			case 462: // zammy
				PutNPCCoords = true;
				c.WanneShop = 35;
				break;
			case 460: // sara
				PutNPCCoords = true;
				c.WanneShop = 36;
				break;
			case 652: // guthix
				PutNPCCoords = true;
				c.WanneShop = 37;
				break;
			case 535: // FAIRY KEEPER IN ADMIN ZONE
				PutNPCCoords = true;
				c.WanneShop = 39;
				break;
			case 556: // Grum
				PutNPCCoords = true;
				c.WanneShop = 57; // Port Sarim Jewelery Shop
				break;
			default:
				break;
		  
		}
		if (PutNPCCoords == true) {
			c.skillX = NPCHandler.getInstance().getNPC(NPCSlot).absX;
			c.skillY = NPCHandler.getInstance().getNPC(NPCSlot).absY;
		}
	}

}
